/*
 * Book.java
 *
 * Created on 2006��10��30��, ����6:14
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.jubao.ejb.entity;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "user_tbl", schema = "jubao_database", uniqueConstraints = {})
public class User extends GeneEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1733389027508297210L;

	@Column(nullable = false, unique = true, updatable = false)
	private String id; // unique

	private String password;

	private String firstName;

	private String lastName;

	private String nickName;

	private String tel;

	private String mobile;

	private String qqId;

	private String detailAddress1;

	private String detailAddress2;

	private String city;

	private String state;

	private String zip;

	private String smallImage;

	private String mediumImage;

	private String largeImage;

	@ManyToOne
	private Store managedStore;

	@Basic(fetch = FetchType.LAZY)
	@Column(length = 512)
	private String shortDesc;

	@Basic(fetch = FetchType.LAZY)
	@Column(length = 2048)
	private String longDesc;

	private boolean isServant = false;

	private boolean isSupplier = false;

	@ManyToOne
	private Category servantPrimaryAreaCategory;

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the firstName
	 */
	public String getFirstName() {
		return firstName;
	}

	/**
	 * @param firstName the firstName to set
	 */
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	/**
	 * @return the lastName
	 */
	public String getLastName() {
		return lastName;
	}

	/**
	 * @param lastName the lastName to set
	 */
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	/**
	 * @return the nickName
	 */
	public String getNickName() {
		return nickName;
	}

	/**
	 * @param nickName the nickName to set
	 */
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	/**
	 * @return the tel
	 */
	public String getTel() {
		return tel;
	}

	/**
	 * @param tel the tel to set
	 */
	public void setTel(String tel) {
		this.tel = tel;
	}

	/**
	 * @return the mobile
	 */
	public String getMobile() {
		return mobile;
	}

	/**
	 * @param mobile the mobile to set
	 */
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	/**
	 * @return the qqId
	 */
	public String getQqId() {
		return qqId;
	}

	/**
	 * @param qqId the qqId to set
	 */
	public void setQqId(String qqId) {
		this.qqId = qqId;
	}

	/**
	 * @return the detailAddress1
	 */
	public String getDetailAddress1() {
		return detailAddress1;
	}

	/**
	 * @param detailAddress1 the detailAddress1 to set
	 */
	public void setDetailAddress1(String detailAddress1) {
		this.detailAddress1 = detailAddress1;
	}

	/**
	 * @return the detailAddress2
	 */
	public String getDetailAddress2() {
		return detailAddress2;
	}

	/**
	 * @param detailAddress2 the detailAddress2 to set
	 */
	public void setDetailAddress2(String detailAddress2) {
		this.detailAddress2 = detailAddress2;
	}

	/**
	 * @return the city
	 */
	public String getCity() {
		return city;
	}

	/**
	 * @param city the city to set
	 */
	public void setCity(String city) {
		this.city = city;
	}

	/**
	 * @return the state
	 */
	public String getState() {
		return state;
	}

	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}

	/**
	 * @return the zip
	 */
	public String getZip() {
		return zip;
	}

	/**
	 * @param zip the zip to set
	 */
	public void setZip(String zip) {
		this.zip = zip;
	}

	public Store getManagedStore() {
		return managedStore;
	}

	public void setManagedStore(Store managedStore) {
		this.managedStore = managedStore;
	}

	/**
	 * @return the shortDesc
	 */
	public String getShortDesc() {
		return shortDesc;
	}

	/**
	 * @param shortDesc the shortDesc to set
	 */
	public void setShortDesc(String shortDesc) {
		this.shortDesc = shortDesc;
	}

	/**
	 * @return the longDesc
	 */
	public String getLongDesc() {
		return longDesc;
	}

	/**
	 * @param longDesc the longDesc to set
	 */
	public void setLongDesc(String longDesc) {
		this.longDesc = longDesc;
	}

	public boolean isServant() {
		return isServant;
	}

	public void setServant(boolean isServant) {
		this.isServant = isServant;
	}

	public String getSmallImage() {
		return smallImage;
	}

	public void setSmallImage(String smallImage) {
		this.smallImage = smallImage;
	}

	public String getMediumImage() {
		return mediumImage;
	}

	public void setMediumImage(String mediumImage) {
		this.mediumImage = mediumImage;
	}

	public String getLargeImage() {
		return largeImage;
	}

	public void setLargeImage(String largeImage) {
		this.largeImage = largeImage;
	}

	/**
	 * @return the servantPrimaryAreaCategory
	 */
	public Category getServantPrimaryAreaCategory() {
		return servantPrimaryAreaCategory;
	}

	/**
	 * @param servantPrimaryAreaCategory the servantPrimaryAreaCategory to set
	 */
	public void setServantPrimaryAreaCategory(Category servantPrimaryAreaCategory) {
		this.servantPrimaryAreaCategory = servantPrimaryAreaCategory;
	}

	/**
	 * @return the isSupplier
	 */
	public boolean isSupplier() {
		return isSupplier;
	}

	/**
	 * @param isSupplier the isSupplier to set
	 */
	public void setSupplier(boolean isSupplier) {
		this.isSupplier = isSupplier;
	}

}
